<style type='text/css'>
	.goods-list a {
		position: relative; 
	}
	.goods-list span  {
	float:right;margin-right:20px;
	 
	}
</style>

{php $totals = m('goods')->getTotals()}
{ifp 'goods'}
<div class='menu-header'>商品管理</div>
<ul class='goods-list'>
 {ifp 'goods.add'}
        <a class='btn btn-primary btn-sm' href="{php echo webUrl('goods/add')}"><i class='fa fa-plus'></i> 添加商品</a>
        {/if}
    <li {if $_GPC['goodsfrom'] == 'sale'} class="active" {/if}><a href="{php echo webUrl('goods',array('goodsfrom'=>'sale'))}"><i class="fa fa-play-circle"></i>经销中商品<span></span></a></li>
	<!-- {$totals['sale']} -->
     <li {if $_GPC['goodsfrom'] == 'out'} class="active" {/if}><a href="{php echo webUrl('goods',array('goodsfrom'=>'out'))}"><i class="fa fa-pause"></i>库存紧张商品<span  class='text-danger'></span></a></li>
	 <!-- {$totals['out']} -->
    <li {if $_GPC['goodsfrom'] == 'stock'} class="active" {/if}><a href="{php echo webUrl('goods',array('goodsfrom'=>'stock'))}"><i class="fa fa-inbox"></i>仓库中商品<span></span></a></li>
	<!-- {$totals['stock']} -->
    <li {if $_GPC['goodsfrom'] == 'cycle'} class="active" {/if}><a href="{php echo webUrl('goods',array('goodsfrom'=>'cycle'))}"><i class="fa fa-inbox"></i>回收站<span  class='text-default'></span></a></li>
	<!-- {$totals['cycle']} -->
     {ifp 'goods.category'}<li {if $_W['action'] == 'goods.category'} class="active" {/if}><a href="{php echo webUrl('goods/category')}"><i class="fa fa-list"></i>商品分类</a></li>{/if}
    {ifp 'goods.group'}<li {if $_GPC['r'] == 'goods.group' || $_GPC['r'] == 'goods.group.edit'}class="active" {/if}><a href="{php echo webUrl('goods/group')}"><i class="fa fa-cubes"></i>商品组</a></li>{/if}
    <li {if $_W['action'] == 'goods.label'} class="active" {/if}><a href="{php echo webUrl('goods/label')}"><i class="fa fa-tags"></i>标签管理</a></li>
	
</ul>
{/if}


{if com('virtual')}
{ifp 'goods.virtual.temp|goods.virtual.category|goods.virtual.data'}
<ul>
    {ifp 'goods.virtual.temp'}<li {if $_W['action'] == 'goods.virtual.temp' ||$_W['action'] == 'goods.virtual.data'} class="active" {/if}><a href="{php echo webUrl('goods/virtual/temp')}"><i class="fa fa-openid"></i>虚拟卡密</a></li>{/if}
    {ifp 'goods.virtual.category'}<li {if $_W['action'] == 'goods.virtual.category'} class="active" {/if}><a href="{php echo webUrl('goods/virtual/category')}"><i class="fa fa-openid"></i>卡密分类</a></li>	{/if}
</ul>
{/if}
{/if}

  